import Vue from 'vue'
import Vuex from 'vuex'


Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		currAudioId: 'none',
		phone:'',	
		cirInfo:{}
	},
	mutations: {
		setCurrAudioId(state,payload){//当前播放录音id
			state.currAudioId=payload;
		},
		setPhone(state,payload) {//设置手机号
			state.phone = payload;
		},
		setCirInfo(state,payload) {//设置从圈子跳到发布打卡时的id，cirname
			state.cirname = payload.cirname;
			state.cirid = payload.cirid;
		}
	}
})

export default store